package com.aigc.sclassroom.utils;

import com.aigc.sclassroom.pojo.Team;
import com.aigc.sclassroom.pojo.upStudent;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;



import java.util.List;

public class upStudentReadListener extends AnalysisEventListener<upStudent> {

    private List<upStudent> students;

    public upStudentReadListener(List<upStudent> students) {
        this.students= students;
    }

    @Override
    public void invoke(upStudent student, AnalysisContext analysisContext) {
        students.add(student);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        // 数据解析完毕后的操作（可选）
    }
}
